#ifndef __GRAPHIC_H__
#define __GRAPHIC_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "Color.h"
#include "Canvas.h"
#include "Image.h"
#include "Draw.h"
#include "DrawNC.h"
#include "DrawEx.h"
#include "Text.h"

/* helper for those using TPoint, TRect conventions to call new drawing:

   foo(..., Point p, ...) -> fnn(..., int x, int y, ...)
   fxx(..., Rect r, ...)  -> fuu(..., int l, int t, int r, int b, ...)

   g_DrawRect(offscreen, RECT_XY(rect), _RGB(0, 0, 255));

   But this is not a good idea, should remove these macros later -OB
 */
#define PPOINT_XY(pp)   (pp)->x,(pp)->y
#define POINT_XY(p)     (p).x,(p).y
#define PRECT_XY(pr)    (pr)->left,(pr)->top,(pr)->right,(pr)->bottom
#define RECT_XY(r)      (r).left,(r).top,(r).right,(r).bottom


#ifdef __cplusplus
}
#endif

#endif
